//@import 'normalize.css/normalize.css';
.m-view-common-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px;
  flex-shrink: 0;

  .m-view-common-head-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    .el-link {
      margin-left: 12px;
    }

    .m-view-common-head-icon {
      color: #606266;
    }
  }
}

.m-view-common-el-tree {
  margin: 10px 0;
}

.m-view-common-layout {
  height: 100%;
  width: 100%;
  display: flex;
  position: relative;
  background: #ebeef5;

  .m-view-common-layout-left {
    width: 220px;
    background-color: #fff;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-right: 10px;

    .m-view-common-title {
      flex-shrink: 0;
      padding: 0 10px;
    }

    .m-view-common-tree-search-box {
      padding: 10px 10px 0;
    }

    .m-view-common-el-tree-scrollbar {
      flex: 1;

      .el-scrollbar__wrap {
        overflow-x: hidden;
      }
    }

    .custom-tree-node {
      width: calc(100% - 30px) !important;
    }

    .m-view-common-el-tree {
      flex: 1;
      overflow: auto;
      overflow-x: hidden;

      .el-tree-node__content {
        height: 40px;
        line-height: 40px;
      }

      // .is-current>.el-tree-node__content .custom-tree-node {
      //   color: #409eff;
      // }
    }
  }
}

.m-view-common-layout-center {
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  .m-view-common-layout-main {
    flex: 1;
    padding: 0 0 10px;
    background-color: #fff;
    height: 100%;
    overflow: hidden;

    &.nohead {
      padding-top: 10px;
    }
  }
}



.m-view-table-delBtn {
  color: #ff3a3a !important;

  &.el-button--text:hover,
  &.el-button--text:focus {
    color: #ff3a3a !important;
  }

  &.is-disabled {
    color: #c0c4cc !important;

    &.el-button--text:hover,
    &.el-button--text:focus {
      color: #c0c4cc !important;
    }
  }
}

.m-view-dialog {
  .el-input__validateIcon {
    display: none !important;
  }

  &.m-view-dialog_center {
    display: flex;
    justify-content: center;
    align-items: center;

    .el-dialog {
      border-radius: 4px;
      margin: 0 !important;

      .el-dialog__header {
        border-bottom: 1px solid #dcdfe6;
        padding: 0 20px;
        height: 56px;
        line-height: 56px;
        display: flex;
        align-items: center;

        .el-dialog__headerbtn {
          top: 2px;
          right: 16px;
        }
      }

      .el-dialog__body {
        overflow: auto;
        overflow-x: hidden;
        max-height: 70vh;
        padding: 20px 50px 2px;
      }

      .el-dialog__close {
        font-size: 24px;
      }
    }

    &.form-script-dialog {
      .el-dialog .el-dialog__body {
        padding: 20px 20px 10px;
      }

      .form-script-dialog-body {
        height: 600px;
        display: flex;
        overflow: hidden;

        .left-tree {
          height: 600px;
          width: 220px;
          flex-shrink: 0;
          margin-right: 10px;
          overflow: hidden auto;
        }

        .right-main {
          height: 600px;
          flex: 1;
          display: flex;
          flex-direction: column;

          .codeEditor {
            flex: 1;
            border: 1px solid #dcdfe6;
          }

          .tips {
            flex-shrink: 0;
            padding: 8px 16px;
            background-color: #ecf8ff;
            border-radius: 4px;
            border-left: 5px solid #50bfff;
            margin-top: 20px;

            p {
              line-height: 24px;
              color: #5e6d82;

              span {
                display: inline-block;
                padding-right: 10px;
              }
            }
          }
        }
      }
    }

    &.formula-dialog {
      .el-dialog .el-dialog__body {
        padding: 20px 20px 10px;
      }

      .formula-dialog-body {
        .code-editor-area {
          height: 250px;
          border: 1px solid #dcdfe6;
          border-radius: 6px;
          margin-bottom: 10px;
          overflow: hidden;
        }

        .operation-area {
          height: 250px;
          display: flex;

          .area-item {
            height: 250px;
            border: 1px solid #dcdfe6;
            border-radius: 6px;
            width: 220px;
            overflow: hidden;

            &.formula-area {
              margin: 0 20px;
            }

            &.formula-desc-area {
              width: 280px;

              .area-content {
                padding: 10px;
              }
            }

            .area-title {
              padding: 0 10px;
              height: 34px;
              line-height: 34px;
              border-bottom: 1px solid #dcdfe6;
            }

            .area-content {
              padding: 10px 0;
              height: 216px;
              overflow: hidden auto;

              .formula-desc-wrapper {
                color: #5e6d82;
                overflow-y: auto;

                & > li {
                  margin-bottom: 4px;
                  word-break: break-all;
                  word-wrap: break-word;
                  list-style-type: none;
                  font-size: 12px;
                  line-height: 18px;
                }

                .formula-name {
                  color: #1890ff;
                }
              }
            }
          }
        }
      }
    }

    &.transfer-dialog {
      .el-dialog .el-dialog__body {
        padding: 10px;
      }

      .transfer-pane__body-tab {
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;

        .el-tabs__header {
          margin-bottom: 0;
          flex-shrink: 0;

          .el-tabs__nav {
            width: 100%;

            .el-tabs__item {
              width: 33.33%;
              text-align: center;
              padding: 0 20px;
            }
          }
        }

        &.hasSys-tab {
          .el-tabs__header .el-tabs__nav .el-tabs__item {
            width: 25%;
          }
        }

        .el-tabs__content {
          flex: 1;

          .el-tab-pane {
            height: 100%;
            padding: 10px;
            overflow: auto;

            .m-view-common-el-tree {
              margin: 0;
            }
          }
        }
      }
    }

    &.m-view-dialog-tree-select {
      .el-dialog__body {
        height: 60vh;
        padding: 0 0 10px !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .m-view-common-layout-left {
          margin-right: 1px;
        }

        .m-view-common-search-box {
          margin-bottom: 0;

          .m-view-common-search-box-right {
            padding: 6px 10px 0 0;
          }
        }
      }
    }

    &.template-dialog {
      .el-dialog__body {
        height: 292px !important;
        padding: 26px 0 10px !important;
        overflow: hidden !important;

        .template-list {
          height: 100%;
          width: 100%;

          .template-item {
            margin: 0 50px;
            height: 40px;
            border-radius: 4px;
            margin-bottom: 10px;
            line-height: 40px;
            padding: 0 20px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
            background: #eff9ff;
            cursor: pointer;

            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }

  &.enlarge-dialog .el-dialog .el-dialog__header {
    border-bottom: none;
  }

  .el-select {
    width: 100%;
  }
}

.m-view-dialog-notice {
  .el-dialog__body {
    padding: 0 60px !important;
  }

  .notice-wrapper {
    .title {
      font-size: 18px;
      font-weight: normal;
      text-align: center;
    }

    .info {
      line-height: 35px;
      border-bottom: 1px solid #dcdfe6;
      text-align: center;

      span {
        padding: 0 10px;
      }
    }

    .main {
      margin: 8px 0;
      line-height: 22px;
      min-height: 300px;
      overflow: auto;
    }

    .file-list {
      padding: 10px 0;
      border-top: 1px solid #dcdfe6;
    }
  }
}

.m-view-common-title {
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  color: #606266;
  align-items: center;

  &.noBorder {
    border: none;
  }

  h2 {
    font-size: 16px;
    line-height: 50px;
    font-weight: 500;

    &.bold {
      font-weight: 600;
    }
  }

  .options {
    & > i,
    .el-link {
      font-size: 16px;
      margin-left: 6px;
      cursor: pointer;
    }
  }

  & + .el-table {
    border-top: none;
  }
}

.m-view-custom-tree-node {
  width: calc(100% - 24px);
  flex: 1;
  display: flex;
  font-size: 0;
  align-items: center;

  i {
    font-size: 14px;
  }

  .text {
    flex: 1;
    font-size: 14px;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  i + .text {
    padding-left: 6px;
  }

  .more {
    float: right;
  }
}

.m-view-common-page-header {
  padding: 14px 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #dcdfe6;

  .options {
    flex-shrink: 0;
    margin-left: auto;
  }

  .el-page-header {
    .el-page-header__left {
      flex-shrink: 0;
    }

    .el-page-header__content {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .steps {
    width: 300px;
    padding: 6px 20px;
    background: #fff;
    justify-items: flex-start;

    .el-step__title {
      cursor: pointer;
    }
  }
}

.m-view-preview-main {
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 100;
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;

  &.nohead {
    padding-top: 10px;
  }

  .btns {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 100;
  }

  .el-table--mini td {
    padding: 2px 0;
  }

  .el-table {
    flex: 1;
  }

  .m-view-common-search-box {
    margin-bottom: 0;
  }

  .main {
    padding: 10px;
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
  }
}

.m-view-flex-main {
  display: flex;
  flex-direction: column;

  .el-table {
    flex: 1;

    &::before {
      border-bottom: 0;
      height: 0px;
    }
  }

  .el-table__fixed::before,
  .el-table__fixed-right::before {
    border-bottom: 0;
    height: 0px;
  }
}

.m-view-dynamic-form-main {
  height: calc(100% - 61px);
  overflow: auto;
  overflow-x: hidden;
  padding: 10px;
}

.m-view-common-drawer {
  .el-drawer__header {
    height: 60px;
    border-bottom: 1px solid #dcdfe6;
    padding: 0 20px;
    margin-bottom: 0;

    & > span {
      line-height: 60px;
    }
  }

  .el-drawer__body {
    overflow: hidden;
  }

  .m-view-flex-main {
    height: calc(100vh - 60px);

    .dynamicForm {
      flex: 1;
      padding: 10px;
      overflow: auto;
    }

    .drawer-footer {
      padding: 10px 20px 20px;
      width: 100%;
      box-sizing: border-box;
      text-align: right;
    }
  }

  .m-view-common-search-box {
    margin-bottom: 0;

    .m-view-common-search-box-right {
      padding: 6px 10px 0 0;
    }
  }
}

.m-view-dynamic-detail {
  .dynamicDetail-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dy-fileList {
    .dy-fileList-item {
      color: #606266;
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.3s;
      white-space: nowrap;
      cursor: pointer;
      margin-top: 10px;
      line-height: 25px;

      .el-icon-document {
        margin-right: 7px;
        line-height: inherit;
      }

      &:hover {
        background-color: #f5f7fa;
      }
    }
  }

  .dy-img {
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin: 0 8px 8px 0;
    border: 1px solid #c0ccda;
    border-radius: 6px;
  }

  .el-color-picker__mask {
    background: none;
  }

  .el-switch.is-disabled {
    opacity: 1;
  }

  .slider-box {
    position: relative;

    .slider-mark {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background: transparent;
      z-index: 1100;
    }
  }

  .el-table th {
    line-height: 23px !important;
  }
}

.m-view-item-table {
  .el-link {
    font-size: 12px;
  }
}

.m-view-child-table-column {
  .child-table__row {
    background: transparent;
    border-bottom: 1px solid #ebeef5 !important;
    display: flex;
    align-items: center;
    min-height: 39px;

    td {
      border: none !important;
      flex-shrink: 0;

      &.td-flex-1 {
        flex: 1;
      }

      .cell {
        min-height: 23px !important;
      }
    }

    &:last-child {
      border-bottom: none !important;
    }
  }

  .expand-more-btn {
    height: 39px;
    text-align: center;
    padding-top: 4px;
  }
}

.m-view-options {
  margin-left: 10px;

  .dropdown {
    margin-right: 10px;
  }

  .el-button {
    min-width: 70px;
  }
}

.m-view-table-grid-box {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 18px;

  & > tbody {
    & > tr {
      & > td {
        border: var(--borderWidth) var(--borderType) var(--borderColor);
        overflow: hidden;
        height: 50px;
        padding: 18px 18px 0;
      }
    }
  }
}

.m-view-tooltip-question {
  color: #a0acb7 !important;
  opacity: 0.8;
}